#define _CRT_SECURE_NO_WARNINGS	

#include <stdio.h>

int main()
{
    double x;
    scanf("%lf", &x);
    int ret = (x - (int)x >= 0.5) ? (int)x + 1 : (int)x;
    printf("%d\n", ret);
    return 0;
}